package com.wisezone.permission.service.impl;

import com.wisezone.common.exception.WzDaoException;
import com.wisezone.common.service.impl.BaseServiceImpl;
import com.wisezone.permission.dao.WzRescRoleDao;
import com.wisezone.permission.service.WzRescRoleService;

/**
 * 
 *资源角色; InnoDB free: 24576 kB
 * 
 * @author create by create date 2010-07-29 14:44:45 update date 2010-07-29
 *         14:44:45
 * 
 */
public class WzRescRoleServiceImpl extends BaseServiceImpl implements
		WzRescRoleService {

	/**
	  *
	  *
	  *
	  */
	private WzRescRoleDao wzRescRoleDao;

	/**
	 * 删除资源角色
	 * 
	 * @param id
	 * @throws WzDaoException
	 */
	public void deleteByRoleId(Long id) throws WzDaoException {

		if (id != null) {
			this.wzRescRoleDao.deleteByRoleId(id);
		}
	}

	public void setWzRescRoleDao(WzRescRoleDao wzRescRoleDao) {
		this.setBaseDao(wzRescRoleDao);
		this.wzRescRoleDao = wzRescRoleDao;
	}

}